const state = {
    wait_del_list: [],
    user_list: [],
    is_add_user_dialog_show: false,
    is_import_excel_dialog_show: false,
    is_user_detail_dialog_show: false,
    is_user_edit_dialog_show: false
}

const getters = {
    wait_del_list: state => state.wait_del_list,
    user_list: state => state.user_list,
    is_add_user_dialog_show: state => state.is_add_user_dialog_show,
    is_import_excel_dialog_show: state => state.is_import_excel_dialog_show,
    is_user_detail_dialog_show: state => state.is_user_detail_dialog_show,
    is_user_edit_dialog_show: state => state.is_user_edit_dialog_show
}

const actions = {

}

const mutations = {
    CHANGE_WAIT_DEL_LIST (state, data) {
        state.wait_del_list = data;
    },
    CHANGE_USER_LIST (state, data) {
        state.user_list = data;
    },
    CHANGE_IS_ADD_USER_DIALOG_SHOW (state, data) {
        state.is_add_user_dialog_show = data;
    },
    CHANGE_IS_IMPORT_EXCEL_DIALOG_SHOW (state, data) {
        state.is_import_excel_dialog_show = data;
    },
    CHANGE_IS_USER_DETAIL_DIALOG_SHOW (state, data) {
        state.is_user_detail_dialog_show = data;
    },
    CHANGE_IS_USER_EDIT_DIALOG_SHOW (state, data) {
        state.is_user_edit_dialog_show = data;
    }
}

export default {
    namespaced: true,
    state, 
    getters,
    actions,
    mutations
}